﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Props.AdminWeb.Models;
using Facebook;
using Props.Backend;

namespace Props.AdminWeb.Controllers
{
    [Authorize]
    public class HomeController : BaseController
    {
        public ActionResult Index()
        {
            var profile = new VendorService().GetProfileByName(base.VendorName);

            HomeIndexModel model = new HomeIndexModel()
            {
                VendorProfile = profile,
                VendorTitle = profile.Title,
                BackgroundColor = profile.BackgroundColor,
                BackgroundUrl = profile.BackgroundUrl
            };

            return View(model);
        }



        public ActionResult PageNotFound()
        {
            return View();
        }
    }
}
